package com.glacier.framework.boot.autoconfigure.context;

import com.glacier.framework.boot.context.ApplicationContextHelper;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * date 2023-12-22 16:24
 *
 * @author glacier
 * @version 1.0
 */
@Configuration
public class ContextAutoConfiguration {
    @Bean
    @ConditionalOnMissingBean
    @ConditionalOnClass(ApplicationContextHelper.class)
    ApplicationContextHelper applicationContextHelper() {
        return new ApplicationContextHelper();
    }
}
